<%@ page language="java" import="java.util.*"  pageEncoding="utf-8"%>
<%@include file="common/indexhead.jsp" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<link rel="stylesheet" href="${pageContext.request.contextPath}/mystyle/zTreeStyle/css/demo.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/mystyle/zTreeStyle/css/zTreeStyle.css" type="text/css">
<script src="${pageContext.request.contextPath}/assets/vendor/jquery/jquery.min.js"></script>
	<script src="${pageContext.request.contextPath}/assets/vendor/bootstrap/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/mystyle/zTreeStyle/js/jquery.ztree.core.js"></script>
	<script src="${pageContext.request.contextPath}/mystyle/js/userclick.js" type="text/javascript" charset="utf-8"></script>
<!-- <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/> -->
<div class="panel panel-primary" >  
	<div class="panel-heading">  
		<div>
		<h3 class="panel-title">用戶管理</h3> 
		</div>
		<div class="button" style="float: right;margin-top: -27px;margin-right: 5px;">
			<a class="btn btn-info" href="/user/add" target="_blank"><i class="fa fa-plus-square"></i>新增用户</a>
		</div>
	</div>  
	<div class="panel-body"  style="height:87%">
		<div style="height:100%">
		<%@include file="userzTree.jsp" %>
		<iframe id="userlist" name="userlist" src="/user/0/usercontent" width=75% height=100% frameborder=0>
				</iframe>
		</div>
		<!-- <hr></hr> -->
		
	</div>
</div>
<!-- 弹出框重写 -->
<div id="ycf-alert" class="modal">
      <div class="modal-dialog modal-sm">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
            <h5 class="modal-title"><i class="fa fa-exclamation-circle"></i> [Title]</h5>
          </div>
          <div class="modal-body small">
            <p>[Message]</p>
          </div>
          <div class="modal-footer" >
            <button type="button" class="btn btn-primary ok" data-dismiss="modal">[BtnOk]</button>
            <button type="button" class="btn btn-default cancel" data-dismiss="modal">[BtnCancel]</button>
          </div>
        </div>
      </div>
    </div>
<!-- 弹出框重写end -->
	<link rel="stylesheet" href="${pageContext.request.contextPath}/mystyle/dialog/jquery-ui-1.10.4.custom.css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/mystyle/dialog/jquery-ui-1.10.4.custom.min.css">
	<script src="${pageContext.request.contextPath}/mystyle/dialog/jquery-ui-1.10.4.custom.js"></script>
	<script src="${pageContext.request.contextPath}/mystyle/dialog/jquery-ui-1.10.4.custom.min.js"></script>
<%-- <%@include file="common/indexbottom.jsp" %> --%>
<script type="text/javascript">
	function changeIframe(){
		//$('#deptlist').attr('src',v);
		document.getElementById('userlist').contentWindow.location.reload(true);
	}
</script>